package com.springBoot.DataSource02.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.springBoot.DataSource02.mapper.UserMapper02;
import com.springBoot.DataSource02.service.UserService02;
import com.springBoot.pojo.User;

@Service("userServiceImpl02")
public class UserServiceImpl02 implements UserService02{

	@Autowired
	private UserMapper02 userMapper02;

	public List<User> getUser02() {
		return null;
	}

	@Transactional(transactionManager = "test2TransactionManager")
	public Integer addUser2(String loginName) {
		return userMapper02.addUser2(loginName,"x徐晓辉","123");
	}

}
